import request from '@/utils/request'
/**
* 获取task
*/
export function getTask(taskID) {
    return request({
        url: '/activiti/task/' + taskID,
        method: 'get'
    })
}
/**
* 获取检测单列表
*/
export function listAll(query) {
    return request({
        url: '/forest/inspectionSheet/listAll',
        method: 'get',
        params: query
    })
}
// 监测类型
export function typeSoil() {
    return request({
        // url: '/system/dict/data/type/tr_type',
        url: '/system/dict/data/type/product_monitor_type',
        method: 'get',
    })
}
// 监测级别
export function levelSoil() {
    return request({
        url: '/system/dict/data/type/dept_level',
        method: 'get',
    })
}
// 检测项目明细
export function inspectionItem(id) {
    return request({
        url: '/forest/inspectionSheet/' + id,
        method: 'get'
    })
}
// 更新检测单
export function updateInspectionSheet(data) {
    return request({
        url: '/forest/inspectionSheet',
        method: 'put',
        data: data
    })
}